package com.jinmdz.fmis.api.admin.model.dictionarydata;

import com.jinmdz.fmis.common.annotation.AnValidate;
import com.jinmdz.fmis.common.constant.EValidateCode;
import com.jinmdz.fmis.dao.base.BaseItem;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 字典保存实体
 *
 * @author GuanKui
 * @date 2020/3/11 15:19
 */
@ApiModel(value = "字典保存实体", description = "字典保存实体")
public class DictionaryDataSaveData extends BaseItem {

    /**
     * 【data_dictionary】表中字典编码
     */
    @AnValidate(name = "字典编码", required = true)
    @ApiModelProperty(value = "字典编码", name = "dictCode", position = 1)
    private String dictCode;

    /**
     * 字典数据编码
     */
    @AnValidate(name = "字典数据编码", required = true, code = EValidateCode.NO_LESS_ZERO)
    @ApiModelProperty(value = "字典数据编码", name = "dataCode", position = 2)
    private Integer dataCode;

    /**
     * 字典数据文本值
     */
    @AnValidate(name = "字典数据文本值", required = true)
    @ApiModelProperty(value = "字典数据文本值", name = "dataText", position = 3)
    private String dataText;

    /**
     * 是否默认值，默认值为0，0，非默认值；1，是默认值
     */
    @AnValidate(name = "是否默认值", required = true, code = EValidateCode.NO_LESS_ZERO)
    @ApiModelProperty(value = "是否默认值，默认值为0，0，非默认值；1，是默认值", name = "asDefault", position = 4)
    private Integer asDefault;

    /**
     * 禁用状态，默认值为0，0，有效可用；1，无效禁用
     */
    @AnValidate(name = "禁用状态", required = true, code = EValidateCode.NO_LESS_ZERO)
    @ApiModelProperty(value = "禁用状态", name = "disableState", position = 5)
    private Integer disableState;

    /**
     * 排序
     */
    @AnValidate(name = "排序", code = EValidateCode.NO_LESS_ZERO)
    @ApiModelProperty(value = "排序", name = "sort", position = 6)
    private Integer sort;

    /**
     * 备注信息
     */
    @AnValidate(name = "备注信息")
    @ApiModelProperty(value = "备注信息", name = "remark", position = 7)
    private String remark;

    public String getDictCode() {
        return dictCode;
    }

    public DictionaryDataSaveData setDictCode(String dictCode) {
        this.dictCode = dictCode;
        return this;
    }

    public Integer getDataCode() {
        return dataCode;
    }

    public DictionaryDataSaveData setDataCode(Integer dataCode) {
        this.dataCode = dataCode;
        return this;
    }

    public String getDataText() {
        return dataText;
    }

    public DictionaryDataSaveData setDataText(String dataText) {
        this.dataText = dataText;
        return this;
    }

    public Integer getAsDefault() {
        return asDefault;
    }

    public DictionaryDataSaveData setAsDefault(Integer asDefault) {
        this.asDefault = asDefault;
        return this;
    }

    public Integer getDisableState() {
        return disableState;
    }

    public DictionaryDataSaveData setDisableState(Integer disableState) {
        this.disableState = disableState;
        return this;
    }

    public Integer getSort() {
        return sort;
    }

    public DictionaryDataSaveData setSort(Integer sort) {
        this.sort = sort;
        return this;
    }

    public String getRemark() {
        return remark;
    }

    public DictionaryDataSaveData setRemark(String remark) {
        this.remark = remark;
        return this;
    }
}
